<%@page import="org.springframework.security.core.context.SecurityContextHolder"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<html>
<head>
<link href="<%= request.getContextPath() %>/resources/css/dropdown/dropdown.css" media="screen" rel="stylesheet" type="text/css" />
<link href="<%= request.getContextPath() %>/resources/css/dropdown/themes/default/default.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
	<ul class="dropdown dropdown-horizontal">	
		<li><a href="<%= request.getContextPath() %>/course/list">Moje szkolenia</a></li>
		<li><a href="<%= request.getContextPath() %>/course/results">Moje wyniki</a></li>
		<li><a href="<%= request.getContextPath() %>/course/schedule">Mój harmonogram</a></li>
		<li><a href="<%= request.getContextPath() %>/course/listAll" >Wszystkie szkolenia</a></li>
		<li><a href="<%= request.getContextPath() %>/coach">Trenerzy</a></li>
		<li><a href="<%= request.getContextPath() %>/">Aktualności</a></li>
		<li><a href="<%= request.getContextPath() %>/contact">Kontakt</a></li>
		<% 
		if(SecurityContextHolder.getContext().getAuthentication().getAuthorities().toString().indexOf("ROLE_ADMIN")>-1)
		{%>
			<li><a href="<%= request.getContextPath() %>/user/listAll" >Wydruki</a></li>
			<li><a href="<%= request.getContextPath() %>/user/schedule" >Harmonogramuj</a></li>
		<%}%>
	</ul>
</body>
</html>